<?php 

class LsLocale
extends CLocale
{
	
	public static $aliases = array(
		'afar' => 'aa',
		'afrikaans' => 'af',
		'akan' => 'ak',
		'amharic' => 'am',
		'arabic' => 'ar',
		'assamese' => 'as',
		'azerbaijani' => 'az',
		'belarusian' => 'be',
		'bulgarian' => 'bg',
		'bengali' => 'bn',
		'tibetan' => 'bo',
		'bosnian' => 'bs',
		'blin' => 'byn',
		'catalan' => 'ca',
		'atsam' => 'cch',
		'coptic' => 'cop',
		'czech' => 'cs',
		'welsh' => 'cy',
		'danish' => 'da',
		'german' => 'de',
		'divehi' => 'dv',
		'dzongkha' => 'dz',
		'ewe' => 'ee',
		'greek' => 'el',
		'english' => 'en',
		'esperanto' => 'eo',
		'spanish' => 'es',
		'estonian' => 'et',
		'basque' => 'eu',
		'persian' => 'fa',
		'finnish' => 'fi',
		'filipino' => 'fil',
		'faroese' => 'fo',
		'french' => 'fr',
		'friulian' => 'fur',
		'irish' => 'ga',
		'ga' => 'gaa',
		'geez' => 'gez',
		'galician' => 'gl',
		'gujarati' => 'gu',
		'manx' => 'gv',
		'hausa' => 'ha',
		'hawaiian' => 'haw',
		'hebrew' => 'he',
		'hindi' => 'hi',
		'croatian' => 'hr',
		'hungarian' => 'hu',
		'armenian' => 'hy',
		'interlingua' => 'ia',
		'indonesian' => 'id',
		'igbo' => 'ig',
		'icelandic' => 'is',
		'italian' => 'it',
		'inuktitut' => 'iu',
		'japanese' => 'ja',
		'georgian' => 'ka',
		'jju' => 'kaj',
		'kamba' => 'kam',
		'tyap' => 'kcg',
		'koro' => 'kfo',
		'kazakh' => 'kk',
		'kalaallisut' => 'kl',
		'khmer' => 'km',
		'kannada' => 'kn',
		'korean' => 'ko',
		'konkani' => 'kok',
		'kpelle' => 'kpe',
		'kurdish' => 'ku',
		'cornish' => 'kw',
		'kirghiz' => 'ky',
		'lingala' => 'ln',
		'lao' => 'lo',
		'lithuanian' => 'lt',
		'latvian' => 'lv',
		'macedonian' => 'mk',
		'malayalam' => 'ml',
		'mongolian' => 'mn',
		'moldavian' => 'mo',
		'marathi' => 'mr',
		'malay' => 'ms',
		'maltese' => 'mt',
		'burmese' => 'my',
		'nepali' => 'ne',
		'dutch' => 'nl',
		'norwegian' => 'no',
		'nyanja' => 'ny',
		'occitan' => 'oc',
		'oromo' => 'om',
		'oriya' => 'or',
		'punjabi' => 'pa',
		'polish' => 'pl',
		'pashto' => 'ps',
		'portuguese' => 'pt',
		'romanian' => 'ro',
		'root' => 'root',
		'russian' => 'ru',
		'kinyarwanda' => 'rw',
		'sanskrit' => 'sa',
		'sinhala' => 'si',
		'sidamo' => 'sid',
		'slovak' => 'sk',
		'slovenian' => 'sl',
		'somali' => 'so',
		'albanian' => 'sq',
		'serbian' => 'sr',
		'swati' => 'ss',
		'swedish' => 'sv',
		'swahili' => 'sw',
		'syriac' => 'syr',
		'tamil' => 'ta',
		'telugu' => 'te',
		'tajik' => 'tg',
		'thai' => 'th',
		'tigrinya' => 'ti',
		'tigre' => 'tig',
		'tagalog' => 'tl',
		'tswana' => 'tn',
		'tonga' => 'to',
		'turkish' => 'tr',
		'taroko' => 'trv',
		'tsonga' => 'ts',
		'tatar' => 'tt',
		'uighur' => 'ug',
		'ukrainian' => 'uk',
		'urdu' => 'ur',
		'uzbek' => 'uz',
		'venda' => 've',
		'vietnamese' => 'vi',
		'walamo' => 'wal',
		'wolof' => 'wo',
		'xhosa' => 'xh',
		'yoruba' => 'yo',
		'chinese' => 'zh',
		'zulu' => 'zu',
	);
	
	public static function getCanonicalID($id){
		if(isset(self::$aliases[$id])){
			$id = self::$aliases[$id];
		}
		return parent::getCanonicalID($id);
	}
	
}

?>